package com.dogegg.lbbopenapi.exception;

public enum ErrorCodeEnum {

    USER_NOT_EXIST( 10001,"用户信息不存在"),
    INVALID_CLIENT_ID( 30001,"客户端信息不存在"),
    INVALID_CLIENT_GRANT( 30002,"客户端没有权限"),
    PARAM_ERROR( 40001,"参数错误"),
    PARAM_DECRYPT_ERROR( 40002,"参数解密错误"),
    PARAM_SIGN_ERROR( 40003,"参数签名错误"),
    SERVER_ERROR (50000,"系统异常");

    private int code;
    private String message;

    ErrorCodeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
